//
//  MsgTableViewCell.m
//  GameBaby
//
//  Created by iOS on 14-2-27.
//  Copyright (c) 2014年 keyZhang. All rights reserved.
//

#import "MsgTableViewCell.h"

@implementation MsgTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)layoutSubviews
{
    self.titleLabel.text = self.model.title;
    self.timeLabel.text = self.model.time;
    if ([self.model.isread intValue] == 0) {
        self.msgImageV.image = [UIImage imageNamed:@"nav_14.png"];
    }else if ([self.model.isread intValue] == 1)
    {
        self.msgImageV.image = [UIImage imageNamed:@"nav_18.png"];
    } 
}

@end
